<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./bootstrap/css/bootstrap.min.css" />
  </head>

  <body>
    <!-- v-model 双向数据绑定 -->
    <!-- v-bind 单向数据绑定 -->
    <div id="app">
      <div style="margin: 40px">
        <p>
          <label class="form-label">姓名</label>
          <input v-model="username" type="text" class="form-control" />
        </p>
        <p>
          <label class="form-label">简介</label>
          <textarea v-model="desc" class="form-control"></textarea>
        </p>
      </div>
    </div>
    <script type="module">
      import { createApp, ref, reactive, computed } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          const username = ref("jack");
          const desc = ref("hello");
          return { username, desc };
        },
      });

      app.mount("#app"); //挂载
    </script>
  </body>
</html>
